package com.hyg.lib_common.DataModel.Music;

import android.os.Parcel;
import android.os.Parcelable;

import org.litepal.crud.LitePalSupport;

import java.util.Objects;

public class PatientData extends LitePalSupport{

    public String patientId = "";              //病人ID
    public String name = "";    //病人姓名
    public String sex = "";     //性别
    public int age = 0;   //年龄
    public String phone = "";//手机号
    public String physicalTime = "";     //体检次数
    public String lastPhysicalDate = "";  //最后一次体检日期
    public String patientCreatDate = "";  //病人创建时间
    public int isVisible = 0; //病人信息是否可见

    public PatientData() {
    }

    //重写equals方法, 使得可以用contains方法来判断列表中是否存在类的实例
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PatientData music = (PatientData) o;
        return Objects.equals(name, music.name);
    }

    public String getPatientId() {
        return patientId;
    }

    public void setPatientId(String patientId) {
        this.patientId = patientId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPhysicalTime() {
        return physicalTime;
    }

    public void setPhysicalTime(String physicalTime) {
        this.physicalTime = physicalTime;
    }

    public String getLastPhysicalDate() {
        return lastPhysicalDate;
    }

    public void setLastPhysicalDate(String lastPhysicalDate) {
        this.lastPhysicalDate = lastPhysicalDate;
    }

    public String getPatientCreatDate() {
        return patientCreatDate;
    }

    public void setPatientCreatDate(String patientCreatDate) {
        this.patientCreatDate = patientCreatDate;
    }

    public int getIsVisible() {
        return isVisible;
    }

    public void setIsVisible(int isVisible) {
        this.isVisible = isVisible;
    }
}
